import { request } from '@/utils/request'
// import { getDateTime } from '@/utils/dateUtils'
// const randomNum = Math.floor(Math.random() * 900000) + 100000
// const tradeSeq = `${getDateTime(new Date(), 'yyyyMMddhhmmssSSS')}${randomNum}`
// const requestHeader = {
//   tradeType: 'WEBSITE', //交易类型
//   tradeSeq, //交易流水号
//   tradeDate: getDateTime(new Date(), 'yyyy-MM-dd '), //日期
//   tradeTime: getDateTime(new Date(), 'hh:mm:ss'), //时间
//   operatorId: localStorage.getItem('usercode'), //代理人工号，从app中获取
//   key: '14:41:08',
//   transChnl: 'TXCDPC' //系统来源-出单平台
// }
export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// export const getCommonCodeApi = (params) =>
//   request({ url: 'base/getCommonCode', method: 'post', data: params })

export const save = (data) =>
  request({ url: '/admin/acl/user/save', method: 'post', data })

// 异常件-温馨提示
export const getuser = (pageNo,pageSize) => request({url: `/admin/acl/user/${pageNo}/${pageSize}`, method: 'get'});
//投保单位信息查询
// export const getGrpDetailById = (data) => request({url: '/new-contract/grp/getGrpDetailById', method: 'post', data});
